<!DOCTYPE html>
<html>
<head>
	<title>Windos CRM</title>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="apple-mobile-web-app-status-bar-style" content="black"> 
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="format-detection" content="telephone=no">
	<link href="/assets/img/favicon.ico" rel="icon" type="image/x-icon">
	<link rel="stylesheet" type="text/css" href="/plugins/layui/css/layui.css?v=1.<?= time(); ?>"  media="all" />
	<script src="/plugins/layui/layui.js" charset="utf-8"></script>
	<script src="/assets/js/jquery-3.3.1.min.js"></script>
	<script src="/assets/js/windos.js"></script>
</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
	<div class="layui-header">
		<div class="layui-logo">Windos CRM</div>
		<!-- 头部区域（可配合layui已有的水平导航） -->
		<ul class="layui-nav layui-layout-left">
			<li class="layui-nav-item<?= Unit::ishere('/site/index') ? ' layui-this' : '' ?>"><a href="/site/index" target="_blank">客户</a></li>
			<li class="layui-nav-item<?= Unit::ishere('/site/index') ? ' layui-this' : '' ?>"><a href="/site/signin" target="_blank">活动</a></li>
			<li class="layui-nav-item<?= Unit::ishere('/site/index') ? ' layui-this' : '' ?>"><a href="/site/search" target="_blank">搜索</a></li>
			<li class="layui-nav-item">
				<a href="javascript:;">其它系统</a>
				<dl class="layui-nav-child">
					<dd><a href="">邮件管理</a></dd>
					<dd><a href="">消息管理</a></dd>
					<dd><a href="">授权管理</a></dd>
				</dl>
			</li>
		</ul>
		<ul class="layui-nav layui-layout-right">
			<li class="layui-nav-item">
				<a href="javascript:;">
					<img src="http://t.cn/RCzsdCq" class="layui-nav-img">
					<span>windos</span>
				</a>
				
			</li>
			<li class="layui-nav-item"><a href="">退出</a></li>
		</ul>
	</div>
	<script>
		 
		layui.use(['util', 'laydate', 'layer'], function() {
			//倒计时
			var util = layui.util,
			laydate = layui.laydate;
			var thisTimer, setCountdown = function(y, M, d, H, m, s){
				var endTime = new Date(y, M||0, d||0, H||0, m||0, s||0) //结束日期
				,serverTime = new Date(); //假设为当前服务器时间，这里采用的是本地时间，实际使用一般是取服务端的
				
				clearTimeout(thisTimer);
				util.countdown(endTime, serverTime, function(date, serverTime, timer){
					var str = date[0] + '天' + date[1] + '时' +  date[2] + '分' + date[3] + '秒';
					lay('#leave-time').html(str);
					thisTimer = timer;
				});
			};
			setCountdown(2018,10,30,10);
			  
			laydate.render({
				elem: '#at-time'
				,type: 'datetime'
				,done: function(value, date){
					setCountdown(date.year, date.month, date.date, date.hours, date.minutes, date.seconds);
				}
			});
		});
	</script>